package com.zqq.user.injection.component

import com.zqq.baselibrary.injection.PerComponentScope
import com.zqq.baselibrary.injection.component.ActivityComponent
import com.zqq.user.injection.module.UploadModule
import com.zqq.user.injection.module.UserModule
import com.zqq.user.ui.activity.*
import dagger.Component

/**
 * 用户模块Component
 * wc
 * (因为UserCom依赖一个有作用域的ActivityCom所以其也要有作用域)
 * @author zqq on 2018/7/26
 */
@PerComponentScope
@Component(modules = arrayOf(UserModule::class, UploadModule::class),
        dependencies = arrayOf(ActivityComponent::class))
interface UserComponent {

    fun inject(activity: RegisterActivity)
    fun inject(activity: LoginActivity)
    fun inject(activity: UserInfoActivity)
    fun inject(activity: ForgetPwdActivity)
    fun inject(activity: ResetPwdActivity)

}